<?php
/**
 * @Author: Leequik
 * @CreateTime:   2021-03-16 14:04:55
 * @Last Modified time: 2021-04-08 09:52:25
 *
 * @description: 
 */
namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;
use Illuminate\Validation\Rule;
use Exception;
use App\Services\MQService;
use App\Services\CodeService;

class TestController extends Controller{

    public function test(){
        return 'test is good';
    }


    public function get(Request $request){

        $input = $request->input();
        $input['age'] = $request->input('age')+10;

        return response()->json($input);
    }

    public function post(Request $request){
        //return 'not null';
        
        return response()->json($request->input());
    }


}